//
//  STButton.h
//  STTools
//
//  Created by stoneobs on 16/4/5.
//  Copyright © 2016年 stoneobs. All rights reserved.
//  

#import <UIKit/UIKit.h>
@class STButton;
typedef void (^STButtonTouch_stoneobs_handle)(UIButton* sender);
@interface STButton : UIButton
@property(nonatomic, strong) UIButton                    *closeButton;
@property(nonatomic, strong) UITextField                    *textFiled;
@property(nonatomic,copy)STButtonTouch_stoneobs_handle    clicAction;
@property(nonatomic,copy)STButtonTouch_stoneobs_handle    closeAction;//只有在 showCloseButton yes有用
@property(nonatomic,assign)BOOL                 showCloseButton;//是否展示删除按钮，默认为no
@property(nonatomic,strong)NSString             *badgeValue;//右上角图标数字
@property(nonatomic,strong)NSString             *obj_id;//
@property(nonatomic, strong) UILabel                     *badgeValueLable;
@property(nonatomic,assign)NSInteger                 cus_slected_status;//0 未选中 1选中 2选中降序
- (instancetype)initWithFrame:(CGRect)frame
                        title:(NSString*)title
                   titleColor:(UIColor*)titlecolor
                    titleFont:(CGFloat)fongtsize
                 cornerRadius:(CGFloat)radiu
              backgroundColor:(UIColor*)color
              backgroundImage:(UIImage*)image
                        image:(UIImage*)image;
//点击回调
- (void)stoneobs_fun_touch_handle:(STButtonTouch_stoneobs_handle)clicAction;
//点击关闭按钮回调
- (void)setCloseAction:(STButtonTouch_stoneobs_handle)closeAction;
//让imageview 变为右边，和title的间隔是insetx
- (void)stoneobs_fun_letImageViewAsright:(CGFloat)insetX;
- (void)stoneobs_fun_makeImageRight;//图片变为右边
@end
